#include <stdio.h>

#include "Queue.h"

int main()
{
    Queue q;
    QueueInit(&q);

    QueuePush(&q,1);
    printf("%d\n",QueueSize(&q));
    printf("%d\n",QueueFront(&q));
    printf("%d\n",QueueBack(&q));

    QueuePush(&q,1);
    QueuePush(&q,2);
    QueuePush(&q,3);
    QueuePush(&q,4);
    printf("%d\n",QueueSize(&q));
    printf("%d\n",QueueFront(&q));
    printf("%d\n",QueueBack(&q));

    QueuePop(&q);
    QueuePop(&q);
    printf("%d\n",QueueSize(&q));
    printf("%d\n",QueueFront(&q));
    printf("%d\n",QueueBack(&q));
    
    if(QueueEmpty(&q))
        printf("NULL\n");
    else 
        printf("error\n");

    QueuePop(&q);
    QueuePop(&q);
    QueuePop(&q);
    if(QueueEmpty(&q))
        printf("NULL\n");
    else 
        printf("error\n");

    //QueueDestroy(&q);
}
